package com.maple.soa.pojo;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;

/**
 * @author lijian
 * @date 2020/7/5
 */
@Component
public class User {
    @Value("李健")
    private String name;
    @Value("22")
    private Integer age;

    public User() {
        System.out.println("current name: " + name + ",current age: " + age);
    }

    @Bean
    public User user0() {
        return new User();
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}
